#include <fcntl.h>
#include <iostream>
#include <vector>
#include <stdio.h>
#include <string.h>
#include "../obj/IGoodsPlugin.h"
// 控制序列化
class CLSerializer
{
public:
    bool Serialize(const char *pFilePath, std::vector<IGoodsPlugin *> &v);
    bool Deserialize(const char *pFilePath, std::vector<IGoodsPlugin *> &v);
    void Register(IGoodsPlugin *pSerialized);

private:
    std::vector<IGoodsPlugin *> m_vSerialized;
};